<%layout("../common/_layout.html", {nav: "办事处管理"}) {%>
<div class="result-title">
  <div class="result-list">
    <a href="/admin/office/add">添加办事处</a>
  </div>
</div>
<div class="result-content">
  <table class="result-tab">
    <tr>
      <th width="5%">No.</th>
      <th>办事处名称</th>
      <th>操作</th>
    </tr>
    <%for(office in officeList) {%>
    <tr>
      <td>${officeLP.index}</td>
      <td>${office.name}</td>
      <td>
        <a class="link-update" href="/admin/office/view?id=${office.id }">查看</a>&nbsp;
        <a class="link-update" href="/admin/office/edit?id=${office.id }">修改</a>&nbsp;
        <a class="link-del" href="/admin/office/delete?id=${office.id }" onclick="return confirm('删除后无法恢复,确定要删除吗')">删除</a>&nbsp;
      </td>
    </tr>
    <%}%>
  </table>
</div>
<%}%>